package com.example.inner_class;
/*方法内部类*/
import com.example.inner_class.father.Father1;
import com.example.inner_class.father.Father2;
public class MyLocalInnerClass extends Father1 {
    private String name="私有成员变量";
    public String name2="公共成员变量";
    private static String name3="私有静态成员变量";
    public static String name4="公共静态变量成员变量";
    public static void speak(){
        System.out.println("公共静态成员方法");
        class LocalClass extends Father2{
            public void LocalMethod(){
                System.out.println("局部内部类的方法");
                System.out.println(name3);
                System.out.println(name4);
                speak2();
            }
        }
    }
    private static void speak2(){
        System.out.println("私有静态成员方法");
    }
    public  void speak3(){
        System.out.println("公共成员方法");
    }
    private  void speak4(){
        System.out.println("私有成员方法");
    }

}
